import request from "@/framework/utils/request";

// 获取个人信息
export function userInfo() {
  return request({
    url: "/admin/UserInfoController/userInfo",
    method: "post",
  });
}

// 修改信息
export function updateInfo(data) {
  return request({
    url: "/admin/UserInfoController/updateInfo",
    method: "post",
    data,
  });
}

// 修改头像
export function headImg(data, sid) {
  return request({
    url: "/admin/UserInfoController/headImg/" + sid,
    method: "post",
    data,
  });
}
